
import Vue from 'vue'
import { generateId } from '@/utils/index'
function vueClearIndex(el, binding, vnode) {
    el.__vueSetTimeoutIndex__ = setTimeout(() => {
        // 清除当前tabIndex
        el.removeAttribute('tabindex')
        clearTimeout(el.__vueSetTimeoutIndex__)
    }, 0)

}

export default {
    bind(el, binding, vnode) {
        vueClearIndex(el, binding, vnode)
    },
    unbind(el) {
        clearTimeout(el.__vueSetTimeoutIndex__)
    }
    // update(el, binding, vnode) {
    //     vueClearIndex(el, binding, vnode)
    // }
}
